$(document).ready(function(){
	    var path = $("#path").val();
		//点击“查看成绩”按钮后，在modal里面更新数据
		$('.showScoreBtn').click(function(){
			var scoreId = $(this).attr('scoreId');
			$.ajax({
				type : 'POST',
				url : path+'/student/showScore',
				data : {
					scoreId : scoreId
				},
				dataType : "json",
				success : function(data){
					$('#userName').text(data.userVO.user_name);
					$('#subjectName').text(data.subjectVO.name);
					$('#examTime').text(data.exam_time_Stirng);
					$('#score').text(data.score);
					$('#showScoreModal').modal('show');
					
				}
			});
		});
		$('#scorePrint').click(function(){
			$('#showScoreModal .modal-body').jqprint();
		});
		
		
		
});


